#define  _CRT_SECURE_NO_WARNINGS  1
#include <stdio.h>
int main()
{
	int n = 0;
	int a[1000] = { 0 };
	scanf("%d", &n);
	int i = 0;
	int x = 0, y = 0;
	double s = 0;
	int j = 0;
	for (i = 0; i < n; i++)
	{
		scanf("%d", &a[i]);
		if (a[i] < 0)
			x++;
		else if (0 == a[i])
			y++;
		else
		{
			j = 1;
			s = s + a[i];
		}
	}
	if (j)
		printf("%d %.1lf", x, s / (n - x - y));
	else
		printf("%d 0.0", x);

	return 0;
}